<template>
  <div v-bind:id="dynamicId" v-bind:dynamicClass="msg">测试</div>
</template>

<script>
  export default {
    data() {
      return {
        msg: "appclass",
        dynamicId: "appid"
      }
    }
  }
</script>